﻿@model FairyWorld.Models.Group

@{
    ViewBag.Title = "EditGroup";
    Layout = "~/Views/Shared/GroupLayout.cshtml";
}


<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<script>
    function cancel() {
        window.location.href = "/Group/Info";
    }
</script>

<style type="text/css">
	.wrap1{ 
	width:980px; 
	background-color:#ccc; 
	position:relative; 
	transform:rotate(-1.5deg); 
	-moz-transform:rotate(-1.5deg); 
	-webkit-transform:rotate(-1.5deg);
    height:280px;
	}
	.wrap2{ 
	width:920px; 
    height:220px;
	background-color:#fff; 
	position:relative;
	transform:rotate(1.5deg); 
	-moz-transform:rotate(1.5deg);
	-webkit-transform:rotate(1.5deg); 
	box-shadow:1px 1px 4px rgba(0,0,0,0.4); 
	-moz-box-shadow:1px 1px 4px rgba(0,0,0,0.4);
	-webkit-box-shadow: 1px 1px 4px rgba(0,0,0,.4);
    padding:30px;
	}
</style>
<div style="height:30px">
</div>
<div class="wrap1">
<div class="wrap2">   
@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>编辑团队信息</legend>

        @Html.HiddenFor(model => model.GroupId)

        <div class="display-label">团队名称</div>
        <div class="editor-field">
            @Html.EditorFor(model => model.groupname)
            @Html.ValidationMessageFor(model => model.groupname)
        </div>

        <div class="display-label">团队描述</div>
        <div class="editor-field">
            @Html.EditorFor(model => model.introduction)
        </div>

        <div>
            <button type="submit" class="btn" style="margin-top:20px">保存更改</button>
            <input type="button" class="btn" onclick="cancel()" style="margin-left:52px;margin-top:20px" value="取消更改" />
        </div>
    </fieldset>
}
</div>
</div>

